class Group < ApplicationRecord
  has_and_belongs_to_many :users
  has_many :children, class_name: "Group",
                      foreign_key: "parent_id"
  belongs_to :parent, class_name: "Group"
end
